import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const routes = [
    {
        path: '/',
        redirect: 'index'
    },
    {
        name: 'index',
        path: '/index',
        component: () => import('../views/index'),
        meta: {
            title: '首页'
        }
    },
    {
        name: 'native',
        path: '/native',
        component: () => import('../views/native/index'),
        meta: {
            title: '测试原生能力'
        }
    },
]

const router = new Router({ routes })

export { router };